// Copyright (c) Symbian Ltd 2008. All rights reserved.


// INCLUDE FILES
#include "rpsAppUi.h"
#include "rpsDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CRpsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRpsDocument* CRpsDocument::NewL( CEikApplication& aApp )
	{
	CRpsDocument* self = NewLC( aApp );
	CleanupStack::Pop( self );
	return self;
	}

// -----------------------------------------------------------------------------
// CRpsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRpsDocument* CRpsDocument::NewLC( CEikApplication& aApp )
	{
	CRpsDocument* self =
		new ( ELeave ) CRpsDocument( aApp );

	CleanupStack::PushL( self );
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CRpsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CRpsDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CRpsDocument::CRpsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CRpsDocument::CRpsDocument( CEikApplication& aApp )
	: CAknDocument( aApp )
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CRpsDocument::~CRpsDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CRpsDocument::~CRpsDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CRpsDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CRpsDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return ( static_cast <CEikAppUi*> ( new ( ELeave )
										CRpsAppUi ) );
	}

// End of File
